package com.finance.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Apollo
 * @Date: 2021/4/19
 * @Description: 征信信息
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "credit_investigation")
public class CreditInvestigation implements Serializable {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 标识
     */
    @TableId(type = IdType.ASSIGN_ID)
    @TableField(fill = FieldFill.INSERT)
    private String code;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    /**
     * 修改时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

    /**
     * 是否删除 1:否 2:是
     */
    private Integer isDelete;

    /**
     * 分
     */
    private Integer score;

    /**
     * 风险等级
     */
    private Integer riskGrade;

    /**
     * 征信时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date creditReportingTime;

    /**
     * 借款人信息标识
     */
    @TableField(value = "borrower_info_code")
    private String borrowerInfoCode;




    private static final long serialVersionUID = 1L;

    public static final String COL_ID = "id";

    public static final String COL_CODE = "code";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_UPDATE_TIME = "update_time";

    public static final String COL_IS_DELETE = "is_delete";

    public static final String COL_SCORE = "score";

    public static final String COL_RISK_GRADE = "risk_grade";

    public static final String COL_CREDIT_REPORTING_TIME = "credit_reporting_time";

    public static final String COL_BORROWER_INFO_CODE = "borrower_info_code";
}